<?php if ($Security->CanEdit()) {?>
<div id="end_order_status_<?php echo $currentObject->id; ?>" style="display:none">
TÃƒÂ©rminÃƒÂ©
</div>
<div class="order_status" id="order_status_<?php echo $currentObject->id; ?>">
<form action="<?php echo createRelativeUrl("edit",""); ?>" method="POST">
<input type="hidden" value="<?php echo $currentObject->id; ?>" name="id" />
<select title="" name="newstatus" id="newstatus" >
<option value="none">Veuillez choisir</option>
<?php


$sSql ="SELECT
shop_orderstatus.id,
shop_orderstatus.status_".$LANG." as lib
FROM
shop_orderstatus
WHERE
shop_orderstatus.parentId=".$currentObject->orderstatusId;
      $rsselect=$GLOBALS["conn"]->Execute($sSql); 
      if ($rsselect->RecordCount()==0) {
      	?>
      	<script>
      	$("#order_status_<?php echo $currentObject->id; ?>").hide();
      	$("#end_order_status_<?php echo $currentObject->id; ?>").show();
      	</script>
      	<?php 
      }
 while ( !$rsselect->EOF)  { 
 	
		  ?>
<option  value="<?php echo $rsselect->fields["id"]; ?>"><?php echo $rsselect->fields["lib"]; ?></option>

				  <?php
		  $rsselect->MoveNext();    
		  }


	
?>
</select>
<input type="image" value="ok" name="form" src="/portal/images/ok.png" width="24"  border="0">

</form>
</div>
<?php } ?>


